package com.ywl.designpattern.observer;

/**
 * @author yuwl
 * @description 具体观察者 Display
 * @since 2024-05-10 09:48
 */
public class Display implements Observer{
    @Override
    public void update(float temperature, float humidity, float pressure) {
        String out = String.format("观察者 Display 收到通知，temperature：%.2f, humidity: %.2f, pressure: %.2f", temperature, humidity, pressure);
        System.out.println(out);
    }
}
